﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ERP.Infeartructure.Migrations
{
    /// <inheritdoc />
    public partial class INit005 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "Department",
                table: "BomProcessRoute",
                type: "longtext",
                nullable: true)
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<string>(
                name: "Owner",
                table: "BomProcessRoute",
                type: "longtext",
                nullable: true)
                .Annotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AddColumn<decimal>(
                name: "UnitWorkHours",
                table: "BomProcessRoute",
                type: "decimal(65,30)",
                nullable: true);

            migrationBuilder.UpdateData(
                table: "BaseEntity",
                keyColumn: "Id",
                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
                column: "CreatedAt",
                value: new DateTime(2025, 8, 27, 12, 59, 19, 997, DateTimeKind.Utc).AddTicks(6137));
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Department",
                table: "BomProcessRoute");

            migrationBuilder.DropColumn(
                name: "Owner",
                table: "BomProcessRoute");

            migrationBuilder.DropColumn(
                name: "UnitWorkHours",
                table: "BomProcessRoute");

            migrationBuilder.UpdateData(
                table: "BaseEntity",
                keyColumn: "Id",
                keyValue: new Guid("00000000-0000-0000-0000-000000000001"),
                column: "CreatedAt",
                value: new DateTime(2025, 8, 27, 6, 41, 2, 227, DateTimeKind.Utc).AddTicks(9960));
        }
    }
}
